<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="lib/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="lib/layui/layui.js"></script>
<link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css" />
<script>
layui.use('table', function(){
  var table = layui.table;
  
  //第一个实例
  table.render({
    elem: '#demo'
    ,height: 312
    ,url: 'adminorders/queryOrdersAll.do' //数据接口
    ,page: true //开启分页
    ,cols: [[ //表头
      {field: 'orders_id', title: '订单ID', width:100,align:'center'}
      ,{field: 'orders_time', title: '下单时间', width:100,align:'center'}
      ,{field: 'user_name', title: '用户登录名', width:80,align:'center'}
      ,{field: 'address_province', title: '城市', width:80,align:'center'} 
      ,{field: 'address_city', title: '省', width: 80,align:'center'}
      ,{field: 'address_country', title: '市', width: 80,'center'}
      ,{field: 'address_details', title: '县/区', width: 80,align:'center'}
      ,{field: 'orders_state', title: '详细地址', width: 100,align:'center'}
      ,{field: 'total_money', title: '订单金额', width: 80,align:'center'}
    ]]
  });
  
});
</script>
<body>
	<table id="demo" lay-filter="test"></table>
</body>
</html>